package lancs.mobilemedia.core.ui.controller;

import lancs.mobilemedia.core.ui.datamodel.ImageData;
import lancs.mobilemedia.core.ui.screens.PhotoListScreen;

public class FavouritesImageListerDecorator extends ImageListerDecorator {

	public FavouritesImageListerDecorator(ImageLister controller) {
		super(controller);
	}

	public void createImageList(PhotoListScreen imageList, ImageData image, boolean favorite) {
		if (favorite) {
			if (image.isFavorite()) {
				imageList.append(image.getImageLabel(), null);
			}
		}
		else {
			super.createImageList(imageList, image, favorite);
		}
	}

	public void sort(PhotoListScreen imageList, ImageData[] images, boolean sort) {
		super.sort(imageList, images, sort);
	}
}
